<script setup>
    import { onMounted , ref } from 'vue';
    const count = ref(0);  //声明响应式变量,内部有value变量

    function  increment(){  //声明函数
        count.value++;
    }

    onMounted(()=>{
        console.log('vue mounted....');
    })

</script>

<template>
    <button @click="increment">count:{{count}}</button>
</template>